package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 创客标签
 * </p>
 *
 * @author bob
 * @since 2018-12-30
 */
@Data
@Accessors(chain = true)
@TableName("zdd_maker_tag")
public class MakerTag extends Model<MakerTag> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 创客id
     */
    private Integer userid;
    /**
     * 创客标签
     */
    private Integer tagid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
